package com.baor.controller;

import com.baor.service.MarketplaceOverviewService;
import com.baor.utils.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.ParseException;
import java.util.Map;

@RestController
@RequestMapping("/marketplace")
public class MarketplaceOverviewController {

    @Autowired
    private MarketplaceOverviewService marketplaceOverviewService;

    @RequestMapping("/overview")
    public AjaxResult<?> overview(@RequestBody Map<String, Object> params) throws ParseException {
        return marketplaceOverviewService.overview(params);
    }
}
